import requests


headers = {
    "authority": "mp.weixin.qq.com",
    "accept": "*/*",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "cache-control": "max-age=0",
    "if-modified-since": "Thu, 08 Dec 2022 06:04:52 GMT",
    "sec-ch-ua": "^\\^",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "^\\^Windows^^",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "sec-fetch-user": "?1",
    "upgrade-insecure-requests": "1",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36",
    "Origin": "https://mp.weixin.qq.com",
    "Referer": "https://mp.weixin.qq.com/",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36",
    "referer": "https://mp.weixin.qq.com/s?__biz=MjM5NzQ5MTkyMA==&mid=2657834552&idx=2&sn=d04b9d36dc76159bfb745792fb9ab521&chksm=bcbe9a6cee95a9728147cc18e14ae90b61688b0e1ac3dbd988d77844bf946e1dccd03a58ca40",
    "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
    "origin": "https://mp.weixin.qq.com",
    "x-requested-with": "XMLHttpRequest",
    "Accept": "image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8",
    "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "Connection": "keep-alive",
    "Sec-Fetch-Dest": "image",
    "Sec-Fetch-Mode": "no-cors",
    "Sec-Fetch-Site": "cross-site"
}
cookies = {
    "rewardsn": "",
    "wxtokenkey": "777"
}
url = "https://mp.weixin.qq.com/s"
params = {
    "__biz": "MjM5NzQ5MTkyMA==",
    "mid": "2657834552",
    "idx": "2",
    "sn": "d04b9d36dc76159bfb745792fb9ab521",
    "chksm": "bcbe9a6cee95a9728147cc18e14ae90b61688b0e1ac3dbd988d77844bf946e1dccd03a58ca40"
}
data = {
    "modify_detail": "^%^5B^%^5D",
    "modify_time": "0",
    "linefeed_card": "r=0.5221800253558739",
    "__biz": "MjM5NzQ5MTkyMA^%^3D^%^3D",
    "appmsg_type": "9",
    "mid": "2657834552",
    "sn": "d04b9d36dc76159bfb745792fb9ab521",
    "idx": "2",
    "scene": "",
    "title": "^%^E5^%^8F^%^88^%^E4^%^B8^%^80^%^E2^%^80^%^9C^%^E5^%^8D^%^95^%^E9^%^A1^%^B9^%^E5^%^86^%^A0^%^E5^%^86^%^9B^%^E2^%^80^%^9D^%^EF^%^BC^%^81^%^E6^%^83^%^8A^%^E8^%^89^%^B3^%^E4^%^BA^%^86^%^EF^%^BC^%^81^%^E5^%^AE^%^83^%^EF^%^BC^%^8C^%^E4^%^B8^%^80^%^E5^%^B9^%^B4^%^E8^%^83^%^BD^%^E7^%^9C^%^81^%^E8^%^BF^%^912^%^E4^%^BA^%^BF^%^E5^%^85^%^83^%^E2^%^86^%^92",
    "ct": "1703981910",
    "abtest_cookie": "",
    "devicetype": "",
    "version": "",
    "is_need_ticket": "0",
    "is_need_ad": "0",
    "comment_id": "3261316747840864258",
    "is_need_reward": "0",
    "both_ad": "0",
    "reward_uin_count": "0",
    "send_time": "",
    "msg_daily_idx": "1",
    "is_original": "0",
    "is_only_read": "1",
    "req_id": "2519whpwsZrIDMjkuCAUBd4x",
    "pass_ticket": "",
    "is_temp_url": "0",
    "item_show_type": "0",
    "tmp_version": "1",
    "more_read_type": "0",
    "appmsg_like_type": "2",
    "related_video_sn": "",
    "related_video_num": "5",
    "vid": "",
    "is_pay_subscribe": "0",
    "pay_subscribe_uin_count": "0",
    "has_red_packet_cover": "0",
    "album_id": "1296223588617486300",
    "album_video_num": "5",
    "cur_album_id": "undefined",
    "is_public_related_video": "NaN",
    "encode_info_by_base64": "undefined",
    "exptype": "",
    "export_key": "",
    "export_key_extinfo": "",
    "business_type": "0req=^%^7B^%^22url^%^22^%^3A^%^5B^%^22http^%^3A^%^2F^%^2Fmp.weixin.qq.com^%^2Fs^%^3F__biz^%^3DMjM5NzQ5MTkyMA^%^3D^%^3D^%^26mid^%^3D2657834532^%^26idx^%^3D1^%^26sn^%^3D1025def7f9ecec3e3e6e2fc6be74c79d^%^26chksm^%^3Dbd46d39b8a315a8d7301a422732ef17d63dd4850819046647014ee1f7fbc25851d4572726bca^%^26scene^%^3D21^%^23wechat_redirect^%^22^%^2C^%^22http^%^3A^%^2F^%^2Fmp.weixin.qq.com^%^2Fs^%^3F__biz^%^3DMjM5NzQ5MTkyMA^%^3D^%^3D^%^26mid^%^3D2657833833^%^26idx^%^3D1^%^26sn^%^3D49bdb52fe7f1ab5228517005e5d1d848^%^26chksm^%^3Dbd46d6d68a315fc055fcbb77fe8947ded442f7cd7c7946c9c7bb4123b169cbdb233f4aaf343a^%^26scene^%^3D21^%^23wechat_redirect^%^22^%^2C^%^22http^%^3A^%^2F^%^2Fmp.weixin.qq.com^%^2Fs^%^3F__biz^%^3DMjM5NzQ5MTkyMA^%^3D^%^3D^%^26mid^%^3D2657834526^%^26idx^%^3D1^%^26sn^%^3Dfb55e6fdecc33fec952b8264771649c0^%^26chksm^%^3Dbd46d3a18a315ab71686226424eaa18e9644b513c7b85a8754bae414a7e10998f93a4c841892^%^26scene^%^3D21^%^23wechat_redirect^%^22^%^2C^%^22http^%^3A^%^2F^%^2Fmp.weixin.qq.com^%^2Fs^%^3F__biz^%^3DMjM5NzQ5MTkyMA^%^3D^%^3D^%^26mid^%^3D2657834532^%^26idx^%^3D2^%^26sn^%^3D7f1deed49eeef0c7e9af72b75b2497fa^%^26chksm^%^3Dbd46d39b8a315a8d98a97ba1c259a49fa33f50ce2978db80841deaa24ec93ffce4fb33db5de2^%^26scene^%^3D21^%^23wechat_redirect^%^22^%^2C^%^22http^%^3A^%^2F^%^2Fmp.weixin.qq.com^%^2Fs^%^3F__biz^%^3DMjM5NzQ5MTkyMA^%^3D^%^3D^%^26mid^%^3D2657834468^%^26idx^%^3D1^%^26sn^%^3Decb4740ac25f54dca3df32305849cb62^%^26chksm^%^3Dbd46d05b8a31594d8a1b2a5dfbdde6d97760684fe296656372a97efcabf726f045085018ecba^%^26scene^%^3D21^%^23wechat_redirect^%^22^%^2C^%^22http^%^3A^%^2F^%^2Fmp.weixin.qq.com^%^2Fs^%^3F__biz^%^3DMjM5NzQ5MTkyMA^%^3D^%^3D^%^26mid^%^3D2657834245^%^26idx^%^3D1^%^26sn^%^3Dc492b296734373802cf0bd2b52db1eda^%^26chksm^%^3Dbd46d0ba8a3159acc304247bec7770000fca12a9fa0c3312c40f4e37170cacd18fdea5a5d8d4^%^26scene^%^3D21^%^23wechat_redirect^%^22^%^2C^%^22http^%^3A^%^2F^%^2Fmp.weixin.qq.com^%^2Fs^%^3F__biz^%^3DMjM5NzQ5MTkyMA^%^3D^%^3D^%^26mid^%^3D2657833826^%^26idx^%^3D2^%^26sn^%^3D9e4edac41ba0edc2f75c41894d92c663^%^26chksm^%^3Dbd46d6dd8a315fcb8c730bda4b544bd7dcd83d51bac913e63101b780abe8253bb2a10cbf0690^%^26scene^%^3D21^%^23wechat_redirect^%^22^%^5D^%^7Dr=0.01796685511177043",
    "pos_type_list": "",
    "vid_list": "^%^5B^%^5D",
    "exportkey": "",
    "waid": "",
    "is_care_mode": "0",
    "is_teenager_mode": "0",
    "ad_device_info": "lc=1",
    "log0": "type^%^3Aresperr^%^3Burl^%^3A^%^252Fmp^%^252Fappmsg_comment^%^253Faction^%^253Dgetcomment^%^2526scene^%^253D0^%^2526appmsgid^%^253D2657834552^%^2526idx^%^253D2^%^2526__biz^%^253DMjM5NzQ5MTkyMA^%^253D^%^253D^%^2526comment_id^%^253D3261316747840864258^%^2526offset^%^253D0^%^2526buffer^%^253D^%^2526limit^%^253D100^%^2526send_time^%^253D^%^2526sessionid^%^253Dsvr_a0d31f59320^%^2526enterid^%^253D1724586241^%^2526top_content_id^%^253D^%^3Bret^%^3D-3",
    "idkey": "28307_84_1^%^3B330742_14_1^%^3B28307_78_1^%^3B28307_80_1^%^3B28307_85_1^%^3B28307_87_1^%^3B28307_64_1",
    "t": "0.3191498376809083count=1",
    "reportjson0": "^%^7B^%^22BizUin^%^22^%^3A2397491920^%^2C^%^22MsgId^%^22^%^3A2657834552^%^2C^%^22ItemIdx^%^22^%^3A2^%^2C^%^22AuthorId^%^22^%^3A^%^22^%^22^%^2C^%^22OpType^%^22^%^3A1^%^2C^%^22Scene^%^22^%^3A75^%^2C^%^22Ispaidarticle^%^22^%^3A0^%^2C^%^22log_id^%^22^%^3A30600^%^2C^%^22TimeStamp^%^22^%^3A1724586245^%^7Dreport_bizuin=MjM5NzQ5MTkyMA^%^3D^%^3D",
    "subscene": "10000",
    "sessionid": "svr_a0d31f59320",
    "enterid": "1724586241",
    "read_cnt": "0",
    "old_like_cnt": "0",
    "like_cnt": "0",
    "screen_width": "537",
    "screen_height": "781",
    "screen_num": "4",
    "copyright_stat": "0",
    "ori_article_type": "",
    "video_cnt": "0",
    "read_screen_num": "1",
    "is_finished_read": "0",
    "content_len": "1274965",
    "start_time": "1724586244141",
    "end_time": "1724586249996",
    "handup_time": "0",
    "inactive_time": "0",
    "inactive_time1": "5000",
    "inactive_time2": "5000",
    "total_height": "3216",
    "exit_height": "781",
    "img_640_cnt": "1",
    "img_0_cnt": "0",
    "img_300_cnt": "0",
    "wtime": "1181",
    "ftime": "473",
    "ptime": "950",
    "onload_time": "1181",
    "reward_heads_total": "0",
    "reward_heads_fail": "0",
    "outer_pic": "0",
    "publish_time": "1703981910",
    "page_req_info": "^%^7B^%^22startGetAppmsgExtTime^%^22^%^3A1724586244774^%^2C^%^22startGetAppmsgAdTime^%^22^%^3A1724586244807^%^2C^%^22receiveGetAppmsgExt^%^22^%^3A^%^22200^%^7C1724586244962^%^22^%^2C^%^22receiveGetAppmsgAd^%^22^%^3A^%^22200^%^7C1724586244966^%^22^%^2C^%^22domCompleteTime^%^22^%^3A1724586244821^%^7D",
    "is_darkmode": "0",
    "from_masonry": "0",
    "search_click_id": "",
    "webp_total": "1",
    "webp_lossy": "1",
    "webp_lossless": "1",
    "webp_alpha": "1",
    "webp_animation": "1",
    "download_cdn_webp_img_cnt": "1",
    "download_img_cnt": "1",
    "download_cdn_img_cnt": "1",
    "img_cnt": "4",
    "report_time": "1724586249",
    "img_gif_cnt": "1",
    "source": "",
    "recommend_version": "",
    "class_id": "",
    "ascene": "0",
    "hotspotjson": "^%^7B^%^22hotspotinfolist^%^22^%^3A^%^5B^%^5D^%^7D",
    "is_paid": "0",
    "preview_percent": "0",
    "is_finished_preview": "0",
    "fee": "",
    "pay_cnt": "undefined",
    "worthy_cnt": "undefined",
    "expsessionid": ""
}
response = requests.post(url, headers=headers, cookies=cookies, params=params, data=data)

print(response.text)
print(response)